<template>
  <div>
    <div class="article">
      <p>欢迎您的到来~~~</p>
      <v-card class="card">
        <div class="cicle">
          <img class="img" src="./../../../public/head.jpg" />
        </div>
        <div class="item">前端</div>
        <div class="title">XXXXXXXXXXXXXXXXXXXXX</div>
        <div class="time">时间：2021-11-20</div>
        <div class="up">置顶</div>
        <div class="action">
            <li><img src="./../../../public/icon/浏览.png"></li>
            <li><img src="./../../../public/icon/收藏.png"></li>
            <li><img src="./../../../public/icon/点赞.png"></li>
            <li><img src="./../../../public/icon/转发.png"></li>
        </div>
      </v-card>
    </div>
    <div class="items">
      <p>标签</p>
      <hr style="color:rgb(243, 243, 243)" />
      <div class="tag">前端</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Article",
  data() {
    return {
      categoryId: 1
    };
  },
  created() {
    this.categoryId = this.$route.params.categoryId;
  },
  methods: {
    test() {
      this.getRequest("/tag/getTagAll").then(resp => {
        console.log(resp);
      });
      this.$Router.push({ name: "Home" });
    }
  }
};
</script>

<style scoped>
li{
    list-style: none;
    float: left;
    margin-left: 15px;
}
li img{
    width: 15px;
    height: 15px;
}
.article {
  float: left;
  width: 60%;
  padding: 20px;
  margin: 20px 20px 0px 40px;
  background-color: rgb(243, 243, 243);
  border-radius: 10px;
}
.items {
  float: right;
  width: 32%;
  padding: 20px;
  margin: 20px 40px 0px 0px;
  background-color: rgb(243, 243, 243);
  border-radius: 10px;
}
.card {
  position: relative;
  padding: 10px;
}
.cicle {
  width: 60px;
  height: 60px;
  background-color: black;
}
.img {
  width: 100%;
  height: 100%;
}
.item {
  position: absolute;
  top: 15px;
  left: 90px;
  width: 32px;
  padding: 2px;
  font-size: 12px;
  text-align: center;
  color: white;
  background-color: green;
}
.title {
  position: absolute;
  top: 10px;
  left: 135px;
}
.time {
  position: absolute;
  left: 90px;
  bottom: 12px;
  font-size: 12px;
  color: gray;
}
.up {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 32px;
  padding: 2px;
  font-size: 12px;
  text-align: center;
  color: rgb(252, 152, 22);
  border: 1px solid rgb(252, 152, 22);
}
.action{
    position: absolute;
    bottom: 10px;
    right: 20px;
    height: 20px;
}
.tag {
  float: left;
  padding: 0px 10px;
  height: 30px;
  line-height: 30px;
  margin: 8px;
  font-size: 16px;
  text-align: center;
  border-radius: 10px;
  color: white;
  background-color: rgb(182, 227, 248);
}
</style>
